package com.rybbaby.tss.front.tssMemberReturnPremium.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @description 订金表
 *
 * @author 雷春琼
 *
 * @createDate 2017-08-09 下午11:56:55
 */
@Entity
@Table(name = "view_meal_fee_refund")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewMealFeeRefund {
    private static final long serialVersionUID = 3330748989275902760L;
    /** 主键 **/
    private String id;
    /** 会员Id **/
    private String stuId;
    /** 日餐点费 **/
    private String dayMealFee;
    /** 缴费金额 **/
    private Double amount;
    /** 消耗金额 **/
    private Double consumptionAmount;
    /** 退费总金额 **/
    private Double refundAmout;
    /** 创建时间 **/
    private Timestamp createTime;
    /** 更新时间 **/
    private Timestamp updateTime;
    /** 版本 **/
    private Integer version;

    /**
     * 方法: 取得主键
     *
     * @return java.lang.String 主键
     */
    @Id
    @GeneratedValue(generator = "view_meal_fee_refundIDGenerator" , strategy = GenerationType.AUTO)
    @GenericGenerator(name = "view_meal_fee_refundIDGenerator" , strategy = "uuid")
    @Column(name = "id", nullable= false, length = 32)
    public String getId() {
        return this.id;
    }

    /**
     * 方法: 设置主键
     *
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "stuId", nullable= false, length = 32)
    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }

    @Column(name = "dayMealFee", nullable= false, length = 11)
    public String getDayMealFee() {
        return dayMealFee;
    }

    public void setDayMealFee(String dayMealFee) {
        this.dayMealFee = dayMealFee;
    }

    @Column(name = "amount", nullable= false, length = 11)
    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Column(name = "consumptionAmount", nullable= false, length = 11)
    public Double getConsumptionAmount() {
        return consumptionAmount;
    }

    public void setConsumptionAmount(Double consumptionAmount) {
        this.consumptionAmount = consumptionAmount;
    }

    @Column(name = "createTime", nullable= false, length = 32)
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "updateTime", nullable= false, length = 32)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Version
    @Column(name = "version", nullable= true, length = 11)
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    @Column(name = "refundAmout", nullable= true, length = 11)
    public Double getRefundAmout() {
        return refundAmout;
    }

    public void setRefundAmout(Double refundAmout) {
        this.refundAmout = refundAmout;
    }
}
